#pragma once

namespace DX
{
	inline void ThrowIfFailed(long hr)
	{
		if (hr < 0)
		{
			// Set a breakpoint on this line to catch Win32 API errors.
			throw Platform::Exception::CreateException(hr);
		}
	}
}